<?php

namespace app\serverorder\service\order;
use app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-10-13 11:30:32
 * @Description: 订单模块
 */

class Order extends ApiBase
{
	
	protected $orderLogic = 'app\serverorder\logic\Order';
    protected $orderValidate = 'app\serverorder\validate\Order';

    /*后台获取所有订单分页列表*/
    public function allOrderList(): array 
    {
        $data = $this->haveIssetReceiveData(['page'=>1, 'listRows'=>15, 'keywords'=>'', 'token'=>' ']);
        return $this->stepRun($data, 'serverorder/order/Order/allOrderList', '', 'allOrderList');
    }

    /*后台获取某订单详情*/
    public function adminOrderInfo(): array 
    {
        $data = $this->haveIssetReceiveData(['id'=>0, 'token'=>' ']);
        return $this->stepRun($data, 'serverorder/order/Order/adminOrderInfo', '', 'adminOrderInfo');
    }
    /*今周新增证书/证书总量*/
    public function orderIncreTendency(): array 
    {
        $data = $this->haveIssetReceiveData(['dbDateFormat'=>'%y-%m-%d', 'dateFormat'=>'y-m-d', 'token'=>' ']);
        return $this->oneStepRun($data, 'serverorder/order/Order/orderIncreTendency', '');
    }


    

}